﻿using KSOAdmin.Core.CacheHelper.Interface;
using KSOAdmin.Extensions.AuthorizationUtility.CreateToken;
using KSOAdmin.Extensions.AuthorizationUtility;
using KSOAdmin.IServices.System;

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using KSOAdmin.Models.Core;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication;

namespace KSOAdmin.Authorization.Controllers
{
    [ApiController]
    [ApiExplorerSettings(GroupName = "鉴权授权中心V1")]
    [Route("authorizationapi/SignOut")]
    public class SignOutController : ControllerBase
    {
        private readonly ICreateVerificationCode _cationCode;
        private readonly ISys_UserServices _services;
        private readonly ICacheService _RedisService;
        public SignOutController(ICreateVerificationCode cationCode, ISys_UserServices services, ICacheService RedisStringService)
        {
            this._cationCode = cationCode;
            this._cationCode = cationCode;
            this._services = services;
            this._RedisService = RedisStringService;
        }
        [Route("Logout")]
        [HttpPost]
        public  ResponseModel Logout(string Token)
        {
            return ResponseModel.Success();
        }
    }
}
